package com.cq;

/**
 * 接口返回结果Code
 * 
 * @author TQ
 *
 */
public class ResultCodeConstants {
	public static class Opration {
		// 等于
		public static final String EQ = "eq";

		// 大于
		public static final String GT = "gt";

		// 小于
		public static final String LT = "lt";

		// 大于等于
		public static final String GE = "ge";

		// 小于等于
		public static final String LE = "le";
	}

	/** 分页查询获取page对象标识 */
	public final static String PAGE_OBJECT = "page";

	/** 分页查询获取pageSize对象标识 */
	public final static String PAGESIZE = "pageSize";

	/** 分页查询获取rows对象标识 */
	public final static String ROWS_OBJECT = "rows";

	/**
	 * 接口返回状态code
	 */
	public final static String CODE_NAME = "isOk";

	/**
	 * 接口返回message Code
	 */
	public final static String MSG_NAME = "msg";

	public final static String RESULT_NAME = "result";
	
	public final static String RESULT_USER_NAME = "Data";
	
	public final static String RESULT_DATA = "resultData"; //订单结果集
		
	
	
	/**
	 * 成功message
	 */
	public final static String SUCCESS_MSG = "success";

	/**
	 * 失败message
	 */
	public final static String FAIL_MSG = "您的操作太快了,服务端获取不到数据噢";

	/**
	 * 订单服务失败message
	 */
	public final static String ORDER_FAIL_MSG = "订单服务异常,我们会尽快处理,请稍后再试";
	
	/** @Fields 操作成功 **/
	public final static int SUCCESS = 1;

	/** @Fields 操作失败 **/
	public final static int ERROR = 0;
	
	
	/** @Fields 操作成功 **/
	public final static String SUCCESS_STR = "1";

	/** @Fields 操作失败 **/
	public final static String ERROR_STR = "0";
	
	
	
	/** @Fields 用户未登录 **/
	public final static int USER_NOT_LOGIN_ERROR = 1005;
	
	
	/** @Fields 提示有必传空的参数 **/
	public final static int WARN_EMPTY_PARAMTER = 100;

	/** @Fields 参数类型无效的参数 **/
	public final static int WARN_INVALID_PARAMTER = 200;

	/** @Fields 参数逻辑错误的参数 **/
	public final static int WARN_ERROR_PARAMTER = 300;

	/** @Fields 两个参数必传一个**/
	public final static int WARN_MUST_OTHER_ONE_PARAMTER = 400;
	/**
	 * 业务服务错误标识
	 */
	public final static String SERVICE_API_FAIL_CODE = "-1";

	/**
	 * 业务服务成功标识
	 */
	public final static int PRODUCT_SERVICE_API_SUCCESS_CODE = 1;

	public final static int CART_SERVICE_API_SUCCESS_CODE = 0;
	
	/**
	 * 业务库存服务成功标识
	 */
	public final static String STOCK_SERVICE_API_SUCCESS_CODE = "1";
	
	/**
	 * 业务库存服务失败标识
	 */
	public final static String STOCK_SERVICE_API_FAIL_CODE = "0";
	
	

	
	
	public final static int DEFAULT_SHOW_PAGE_COUNT=5;
	
	
	public final static int DEFUALT_ORDER_MAX_PAGE_SIZE=20;
	/**
	 * 默认最小当前页码  默认为1
	 */
	public final static int DEDEAULT_MIN_PAGE=1;
	
	/**
	 * 绑定卡默认分页最大数据量  默认为20
	 */
	public final static int CARD_DEFAULT_MAX_PAGE_SIZE = 5;
	
	/**
	 * 默认分页最大数据量  默认为10
	 */
	public final static int DEFAULT_MAX_PAGE_SIZE = 10;
	
	/**
	 * 中等页面数据量 5
	 */
	public final static int MEDIUM_PAGE_SIZE =5;
	
	
	
	
	
	
	/**
	 * 默认联系人, 1为默认
	 */
	public final static int DEFAULT_CONTACT_PERSON= 1;
	
	/**
	 * 系统
	 */
	public final static String SYSTEM_TYPE= "SYS_SUB";
	
	/**
	 * 渠道编码类型
	 */
	public final static String CHANNEL_TYPE= "JYLX";
	
	/**
	 * 科目财务编码类型
	 */
	public final static String MONEY_TYPE= "XFQD";
	
	/**
	 * monggo DB 连接名
	 */
	public final static String USER_COLLECTION_NAME= "user_account_info";
	public final static String SYSTEM_COLLECTION_NAME= "pay_info_log";

	/*
	 * 删除
	 */
	public static final byte STATUS_Delete = -1;
	/*
	 * 禁用
	 */
	public static final byte STATUS_FORBIDDEN = 0;
	/*
	 * 正常
	 */
	public static final byte STATUS_NORMAL = 1;
	/*
	 *待批
	 */
	public static final byte STATUS_WAIT_APPROVE = 2;	
	/*
	 * 分页查询属性start
	 */
	public static final String PAGES_START = "start";
	
	/*
	 * 分页查询属性current_page
	 */
	public static final String PAGES_CURRENT_PAGE = "current_page";
	
	/*
	 * 分页查询属性page_size
	 */
	public static final String PAGES_PAGE_SIZE = "page_size";
	
	/*
	 * 参数bean前缀
	 */
	public static final String BEAN_PARAM = "param";
	
	/*
	 * 结果bean前缀
	 */
	public static final String BEAN_RESULT = "result";
	
	/*
	 * example后缀
	 */
	public static final String BEAN_EXAMPLE = "Example";
	/*
	 * 是否为全数据
	 */
	public static final String ISALLDATANAME = "isAllData";
	/*
	 * 是否为树形结构
	 */
	public static final String ISTREENAME = "isTree";
	/*
	 * 是否为树形结构
	 */
	public static final String _EXCEL = "_excel";
	
}
